<ui:composition template="../template/principal_II.xhtml"
            xmlns:ui="http://java.sun.com/jsf/facelets"
            xmlns:h="http://java.sun.com/jsf/html"
            xmlns:p="http://primefaces.org/ui">

           <ui:define name="menu" />

           <ui:define name="panelCentral">

               <h:form>
                   <p:commandButton value="Agregar 1" actionListener="#{tabDinamicoBean.add('../inventario/catalogo.xhtml')}" />
               </h:form>

               <p:tabView var="menu" value="#{tabDinamicoBean.ventanas}">

                   <p:tab title="#{menu.descripcion}">

                       <h:panelGrid columns="2" cellpadding="10">

                           <h:outputText value="#{menu.accion}" />
                           <ui:include src="#{menu.accion}" />

                       </h:panelGrid>

                   </p:tab>
                </p:tabView>
               <ui:include src="../ventas/carritoLista.xhtml" />

           </ui:define>

</ui:composition>

